package tw.com.sell.db.util;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {

	private static String CREATE_CARD_SQL = "CREATE TABLE Card ("
			+ "_id integer PRIMARY KEY AUTOINCREMENT NOT NULL,"
			+ "note text NOT NULL," + "seq text NOT NULL,"
			+ "type text NOT NULL," + "name text NOT NULL,"
			+ "amount text NOT NULL);";

	public DBHelper(Context context) {
		super(context, "bTable", null, 1);

		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_CARD_SQL);
		// TODO Auto-generated method stub

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
